package com.demo.security.cloud.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry){

        // 根节点进入的URL，这里是登录成功后调整的页面
//        registry.addViewController("/").setViewName("redirect:/loginSuccess");
    }
}
